load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = ["install.go"],
    importpath = "k8s.io/kops/nodeup/pkg/bootstrap",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/systemd:go_default_library",
        "//upup/pkg/fi:go_default_library",
        "//upup/pkg/fi/nodeup/local:go_default_library",
        "//upup/pkg/fi/nodeup/nodetasks:go_default_library",
        "//util/pkg/distributions:go_default_library",
        "//util/pkg/vfs:go_default_library",
        "//vendor/k8s.io/klog/v2:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = ["install_test.go"],
    data = glob(["tests/**"]),  #keep
    embed = [":go_default_library"],
    deps = [
        "//pkg/testutils:go_default_library",
        "//upup/pkg/fi:go_default_library",
    ],
)
